package com.nineclock.doc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.nineclock.common.entity.PageResult;
import com.nineclock.common.enums.ResponseEnum;
import com.nineclock.common.exception.NcException;
import com.nineclock.common.threadlocal.CurrentUserHolder;
import com.nineclock.common.utils.BeanHelper;
import com.nineclock.doc.dto.DocFileDto;
import com.nineclock.doc.dto.DocumentDto;
import com.nineclock.doc.pojo.DocFile;
import com.nineclock.doc.service.DocPagesListFileService;
import com.nineclock.system.pojo.SysCompanyUser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class DocPagesListFileImpl implements DocPagesListFileService {
    @Override
    public PageResult<DocumentDto> DocPagesListFile(Integer page, Integer pageSize, String keyword) {
        LambdaQueryWrapper<SysCompanyUser> wrapper = new LambdaQueryWrapper<>();


        //keyword  关键词  模糊查询
        if (keyword != null) {
            wrapper.and(wrapper1 -> {
                wrapper1.like(SysCompanyUser::getUserName, keyword)
                        .or().like(SysCompanyUser::getWorkNumber, keyword)
                        .or().like(SysCompanyUser::getMobile, keyword);
            });

            
        }
        return null;
    }

    }
